package com.example.virus.activity;

import java.util.Timer;
import java.util.TimerTask;

import com.example.virus.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
/**
 * Splash Activity
 * @author Administrator
 * 
 *jmp home activity
 */
public class SplashActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
      
        final Intent it = new Intent(this, HomeActivity.class); 
        Timer timer = new Timer(); 
        TimerTask task = new TimerTask() {  
            @Override  
            public void run() {   
            startActivity(it); 
             } 
         };
        timer.schedule(task, 1000 * 2);
    }
    
    
    
}
